package com.hznu.ez4life.modules.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hznu.ez4life.myBeans.BaseEntity;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author DragonDoor
 * @since 2019-07-25
 */
public class Helpitem extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private Integer userId;
    private Double weight;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date begintime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date endtime;
    private Double price;
    private String des;
    private Integer stationId;

    @TableField(exist = false)
    private Integer[] buildingIds;
    @TableField(exist = false)
    private List<Building> buildings;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Station station;

    public Integer[] getBuildingIds() {
        return buildingIds;
    }

    public void setBuildingIds(Integer[] buildingIds) {
        this.buildingIds = buildingIds;
    }

    public List<Building> getBuildings() {
        return buildings;
    }

    public void setBuildings(List<Building> buildings) {
        this.buildings = buildings;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Integer getStationId() {
        return stationId;
    }

    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }

    @Override
    public String toString() {
        return "Helpitem{" +
        ", id=" + id +
        ", userId=" + userId +
        ", weight=" + weight +
        ", begintime=" + begintime +
        ", endtime=" + endtime +
        ", price=" + price +
        ", des=" + des +
        ", stationId=" + stationId +
        "}";
    }
}
